package com.spring.example.rocket.Listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQLocalTransactionListener;
import org.apache.rocketmq.spring.core.RocketMQLocalTransactionState;
import org.springframework.messaging.Message;
import org.springframework.stereotype.Component;

/**
 * author: xiaochi
 * date: 2025/10/10
 */
@Component
@Slf4j
@RocketMQMessageListener(topic = "test-transaction-topic", consumerGroup = "test-group")
public class TestTransactionListener implements RocketMQLocalTransactionListener{

    @Override
    public RocketMQLocalTransactionState executeLocalTransaction(Message msg, Object arg) {
        return null;
    }

    @Override
    public RocketMQLocalTransactionState checkLocalTransaction(Message msg) {
        return null;
    }
}
